package org.nvframe.event.eventtype;

import org.nvframe.entity.Entity;
import org.nvframe.event.AbstractEvent;
import org.nvframe.event.EventListener;
import org.nvframe.event.EventService.EVENT_TYPE;

/**
 * 
 * @author Nik Van Looy
 */
public class CollisionEvent extends AbstractEvent {

	private static Class<? extends EventListener> listener = CollisionListener.class;
	
	private Entity entity1;
	private Entity entity2;

	public CollisionEvent(Entity entity1, Entity entity2) {
		// set the event type
		eventType = EVENT_TYPE.COLLISION;
		
		// set event-specific properties
		this.entity1 = entity1;
		this.entity2 = entity2;
	}

	public Entity getEntity1() {
		return entity1;
	}

	public Entity getEntity2() {
		return entity2;
	}

	@Override
	protected Class<? extends EventListener> getListener() {
		return listener;
	}
}
